<div class="col-lg-11 col-md-11 col-sm-11" style="margin-left: 3.7%;">
<div class="box pav-block bloglatest">
  <div class="box-heading"><span><?php echo $cate[0]->name;?></span></div>
          <div class="pavblog-latest clearfix box-content">
            <div class="row">


          <?php foreach($paginator as $v){ ?>
              <div class="col-lg-3 col-sm-3 pavblock">
          <div class="blog-item">         
            <div class="blog-body clearfix">
              <a href="<?php echo $this->url('home', array('action'=>'detail','id'=>$v->video_id));?>">
              <div class="image clearfix">

                                  <img style="width: 100%;" src="<?php echo $this->basePath('/photo/').$v->image;?>">
                              </div>
                            </a>
              <div class="group-blog">
                <div class="blog-title">
                  <a href="<?php echo $this->url('home', array('action'=>'detail','id'=>$v->video_id));?>" >
                     <?php echo $v->title;?>
                  </a>
                </div>

                <div class="description">
                  <p> 
                    <?php if(strlen($v->content)<25){echo $this->escapeHtml($v->content);}else echo $this->escapeHtml(substr($v->content,0,25)).'...';?>
                </p></div>

                
                
              </div>
              
            </div>  
          </div>
        </div>
        <?php }?>




            
      </div>

      <?php
 echo $this->paginationControl(
     // the paginator object
     $this->paginator,
     // the scrolling style
     'sliding',
     // the partial to use to render the control
     array('partial/paginator.phtml', 'Home'),
     // the route to link to when a user clicks a control link
     array(
         'route' => 'home'
     )
 );
 ?>

                </div>
      </div>

</div>

